package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 中转航班对象 connecting_flight
 * 
 * @author ruoyi
 * @date 2023-05-10
 */
public class ConnectingFlight extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 中站航班id */
    private Long id;

    /** 飞机起飞时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "飞机起飞时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date departureTime;

    /** 飞机降落时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "飞机降落时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date landingTime;

    /** 起飞机场id */
    @Excel(name = "起飞机场id")
    private Long departureAirport;

    /** 降落机场id */
    @Excel(name = "降落机场id")
    private Long landingAirport;

    /** 起始航班id 对应航班表id */
    @Excel(name = "起始航班id 对应航班表id")
    private Long startingFlight;

    /** 中专航班id 对应航班表id */
    @Excel(name = "中专航班id 对应航班表id")
    private Long endFlight;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal cprice;

    /** 剩余数量 */
    @Excel(name = "剩余数量")
    private Long remainingAmount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDepartureTime(Date departureTime) 
    {
        this.departureTime = departureTime;
    }

    public Date getDepartureTime() 
    {
        return departureTime;
    }
    public void setLandingTime(Date landingTime) 
    {
        this.landingTime = landingTime;
    }

    public Date getLandingTime() 
    {
        return landingTime;
    }
    public void setDepartureAirport(Long departureAirport) 
    {
        this.departureAirport = departureAirport;
    }

    public Long getDepartureAirport() 
    {
        return departureAirport;
    }
    public void setLandingAirport(Long landingAirport) 
    {
        this.landingAirport = landingAirport;
    }

    public Long getLandingAirport() 
    {
        return landingAirport;
    }
    public void setStartingFlight(Long startingFlight) 
    {
        this.startingFlight = startingFlight;
    }

    public Long getStartingFlight() 
    {
        return startingFlight;
    }
    public void setEndFlight(Long endFlight) 
    {
        this.endFlight = endFlight;
    }

    public Long getEndFlight() 
    {
        return endFlight;
    }
    public void setCprice(BigDecimal cprice) 
    {
        this.cprice = cprice;
    }

    public BigDecimal getCprice() 
    {
        return cprice;
    }
    public void setRemainingAmount(Long remainingAmount) 
    {
        this.remainingAmount = remainingAmount;
    }

    public Long getRemainingAmount() 
    {
        return remainingAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departureTime", getDepartureTime())
            .append("landingTime", getLandingTime())
            .append("departureAirport", getDepartureAirport())
            .append("landingAirport", getLandingAirport())
            .append("startingFlight", getStartingFlight())
            .append("endFlight", getEndFlight())
            .append("cprice", getCprice())
            .append("remainingAmount", getRemainingAmount())
            .toString();
    }
}
